The file chooser is no box anymore
authorMatthias Clasen <mclasen@redhat.com>
Wed, 29 Aug 2018 16:35:12 +0000 (12:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 Aug 2018 17:11:06 +0000 (13:11 -0400)
Don't treat it as one, it does not like it.

Closes https://gitlab.gnome.org/GNOME/gtk/issues/1297

gtk/gtkfilechooserwidget.c

index 73a125dae5175172f30a94d12875532a91969851..67062a0b1427f9391dba4123c10f0860179c5197 100644 (file)
@@ -6092,7 +6092,7 @@ gtk_file_chooser_widget_get_default_size (GtkFileChooserEmbed *chooser_embed,
     {
       gtk_widget_get_preferred_size (priv->extra_align,
                                      &req, NULL);
-      *default_height += gtk_box_get_spacing (GTK_BOX (chooser_embed)) + req.height;
+      *default_height += gtk_box_get_spacing (priv->box) + req.height;
     }
 }